package com.xinghai.mapper;

import com.xinghai.domain.JkqActivityShare;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 活动分享记录Mapper接口
 *
 * @author xinghai
 * @date 2025-08-02
 */
public interface JkqActivityShareMapper  extends MPJBaseMapper<JkqActivityShare>
{
    @Update("update jkq_activity_share set share_num = share_num + 1 where activity_id = #{activityId} and user_id = #{userId}")
    void updateShareNumByActivityId(@Param("activityId") Long activityId, @Param("userId") Long userId);
}
